import java.io.IOException;
import java.net.Socket;

/**
 * @Author zhangkaiqiang
 * @Date 2020/7/20 18:14
 * @Version 1.0
 *
 * Socket Demo 客户端代码
 */
public class EchoClient {


    private final String host="192.168.135.1";

    private final Integer port=8081;

    private  Socket socket;

    public void init(){
        try {
            // 与服务端建立连接
             socket=new Socket(host,port);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


    public static void main(String[] args) {
        EchoClient client=new EchoClient();
        client.init();
    }
}
